home *** CD-ROM | disk | FTP | other *** search
- Path: ping.be!news
- From: <>
- Newsgroups: comp.lang.c
- Subject: Re: Float to String
- Date: 22 Mar 1996 07:20:04 GMT
- Organization: PING Belgium
- Message-ID: <4itkb4$ggu@ping1.ping.be>
- NNTP-Posting-Host: dialup44.hasselt.eunet.be
-
- scoshe@ix.netcom.com(Christopher Scott Shelton ) writes:
- > Is it possible to convert a float to a string? like the itoa function.
-
- Use the sprintf function:
- f.e. float val=12.345F;
- char string[10];
- sprintf (string,"%f",val);
-
-